
// mock 数据
import Mock from "mockjs";

// 会话管理-游客列表
Mock.mock("/api/touristlist", "get", {
  "list|50": [
    {
      "key|+1": 1,
      id: "@id()",
      name: "@cname()",
      img: "@image(50x50,@color)",
      "status|1": [0, 1],
      ip: "@ip()",
      time: "@time",
    },
  ],
});
// 会话管理-服务记录
Mock.mock("/api/servicerecord", "get", {
  "list|50": [
    {
      "key|+1": 1,
      id: "@id()",
      name: "@cname()",
      ip: "@ip()",
      jdname: "@cname()",
      stime: "@datetime()",
      etime: "@datetime",
    },
  ],
});

// 会话管理-聊天记录
Mock.mock("/api/chatrecords", "get", {
  "list|50": [
    {
      "key|+1": 1,
      name: "@cname()",
      msg: "@cword(2,8)",
      jsname: "@cname()",
      time: "@datetime",
    },
  ],
});

// 客服-客服列表
Mock.mock("/api/customerserviceList", "get", {
  "list|50": [
    {
      "key|+1": 1,
      id: "@id()",
      name: "@cname()",
      img: "@image(50x50,@color)",
      "status|1": [0, 1],
      time: "@datetime",
    },
  ],
});

//楼盘管理 楼盘列表 数据
Mock.mock("/api/propertiesList", "get", {
  "propertiesList|20": [
    {
      id: "@id",
      "key|+1": 1,
      name: "@ctitle(4,7)",
      'region|+1': ["三亚", "海口", "厦门"],
      "price|10000-100000": 11000,
      time: "@time",
      "sort1|1000-10000": 1000,
      "state|1": [false, true],
      img: "https://img2.baidu.com/it/u=2735887356,1630169057&fm=253&fmt=auto?w=500&h=500"
    },
  ],
});
// 楼盘 --- 团购管理 --- 团购列表数据
Mock.mock('/api/houseslist', "get", {
  'list|100': [
    {
      id: '@id',
      'key|+1': 1,
      name: '@ctitle(3,6)',
      city: '@city',
      title: "@ctitle(10,20)",
      'MonthlyRent|1000-10000': 1,
      "TotalPrice|100-1000": 1,
      'price|2000-50000': 1,
      time: '@datetime()',
      'number|1-1000': 1,
      'status|1': ['0', '1']
    }
  ]
});
